﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class CadastroCliente : Form
    {
        
        public CadastroCliente()
        {
            InitializeComponent();
            maskedTextBox1.Mask = "0000-0";
            maskedTextBox1.MaskInputRejected += new MaskInputRejectedEventHandler(maskedTextBox1_MaskInputRejected);
            maskedTextBoxTel.Mask = "(00)0000-0000";
        }

        private void maskedTextBox1_MaskInputRejected(object sender, MaskInputRejectedEventArgs e)
        {
            toolTip1.ToolTipTitle = "Invalid Input";
            toolTip1.Show("We're sorry, but only digits (0-9) are allowed in dates.", maskedTextBox1, maskedTextBox1.Location, 5000);
        }

        private void textBox3_TextChanged(object sender, EventArgs e)
        {
            toolTip2.ToolTipTitle = "Invalid Input";
            toolTip2.Show("We're sorry, but only digits (0-9) are allowed in dates.", maskedTextBoxTel, maskedTextBoxTel.Location, 5000);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            
            MessageBox.Show("Muahahahaaha!!! Já sei tudo sobre você!!");
        }
    }
}
